function [c_w,e_w]=surrogateNetConnected(m,nSurr)

c=zeros(nSurr,1);
e=zeros(nSurr,1);

for i=1:nSurr
    %rw=null_model_und_sign(m,1);
    rw=randmio_und_connected(m,1);
    %rw=randWeightedGraph(m);
    [c(i),e(i)]=graphMeasure_Bin(rw);
end
c_w=mean(c);
e_w=mean(e);
